From: Jasper St. Pierre Date: Wed, 20 Mar 2013 00:16:54 +0000 (-0400) Subject: layout: Clip the window group when doing the startup animation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4388 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d61fe357f609e99db9d4e9592a58db537e8cdbca;p=gnome-shell.git layout: Clip the window group when doing the startup animation This ensures that when we have windows that are already visible, like desktop icons, they don't fly across the screen from what seems to be hyperspace to get into view. https://bugzilla.gnome.org/show_bug.cgi?id=696323 --- diff --git a/js/ui/layout.js b/js/ui/layout.js index e8f46c1cb..ebc9a1dcd 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -578,6 +578,7 @@ const LayoutManager = new Lang.Class({ y / global.screen_height); this.uiGroup.scale_x = this.uiGroup.scale_y = 0.5; this.uiGroup.opacity = 0; + global.window_group.set_clip(monitor.x, monitor.y, monitor.width, monitor.height); } this._systemBackground = new Background.SystemBackground(); @@ -654,8 +655,10 @@ const LayoutManager = new Lang.Class({ this.trayBox.show(); this.keyboardBox.show(); - if (!Main.sessionMode.isGreeter) + if (!Main.sessionMode.isGreeter) { this._createSecondaryBackgrounds(); + global.window_group.remove_clip(); + } this._queueUpdateRegions();